package com.molichuxing.services.infrastructure.dao;

import java.time.LocalDateTime;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.PhoneRecognitionBean;

/**
 * <p>
 * 手机号验证表 Mapper 接口
 * </p>
 *
 * @author liyg
 * @since 2019-08-14
 */
public interface PhoneRecognitionMapper extends RootMapper<PhoneRecognitionBean> {

	/**
	 * 根据用户id查询记录列表
	 * 
	 * @param userId
	 * @return
	 */
	List<PhoneRecognitionBean> getListByUserId(@Param("userId") Integer userId);

	/**
	 * 获取验证结果
	 * @param userId
	 * @param verifyTime
	 * @return
	 */
	List<PhoneRecognitionBean> getVerifyResult(@Param("userId") Integer userId,@Param("verifyTime") LocalDateTime verifyTime);

}
